//
// Created by lee on 24-6-26.
//

#ifndef DKS_AGX_DECODE_H
#define DKS_AGX_DECODE_H
#include "struct_define.h"

uint16_t get_checksum(const uint8_t *buff, uint16_t sz);

void addByteToChecksum(uint8_t b);

void decodeInit();

int parseChar(uint8_t b, uint8_t *packet, RECV_TYPE &recv_type, uint16_t& length) ;

#endif //DKS_AGX_DECODE_H
